/**
 * 
 */
package com.googlecode.xcarve.zk;

import java.util.List;

import com.googlecode.xcarve.config.refer.NotifyListener;

/**
 * @author duxinyun
 *
 */
public interface ZkClient {

	void createPath(String path);
	
	void createPath(String path,boolean ephemeral);
	
	void subscrible(final String path,final NotifyListener listener);
	
	void delete(String path);

	List<String> getChildren(String path);
	
	boolean exist(String path);
	
	boolean isAvailable();
	
}
